<?
/*
controller action class

@author		Jelle Versele
@email		me@jelleversele.be

parent action class alle controller moeten hier van overerven
*/



abstract class controller_action implements controller_action_interface{
	
	protected $request;
	protected $view;
	protected $conn;
	
	public function __construct(controller_request $iRequest, view $iView, mysqli $iDb){
	
		$this -> request = $iRequest;
		$this -> view = $iView;
		$this -> conn = $iDb;
		
	}
	
	protected function redirect($iUrl){
	
		header('Location: ' . (string) $iUrl); 
	
	}
	
	
	abstract function indexAction();


}
?>